﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zj.OpenAuth.Domain.Core;

namespace Zj.OpenAuth.DTO.Common
{
    /// <summary>
    /// user data transfer object
    /// </summary>
    public class UserDTO
    {
        public int Id { get; set; }



        [StringLength(36)]
        public string Code { get; set; }



        [Required]
        [StringLength(20)]
        public string Account { get; set; }


        [Required]
        [StringLength(20)]
        public string RealName { get; set; }



        [Required]
        [StringLength(64)]
        public string Password { get; set; }



        [StringLength(20)]
        public string Mobile { get; set; }




        [StringLength(50)]
        public string Address { get; set; }



        [StringLength(100)]
        public string Email { get; set; }



        public long? QQ { get; set; }



        [StringLength(50)]
        public string WeChat { get; set; }


        public string Description { get; set; }


        public SexEnum? Sex { get; set; }



        public StatusEnum Status { get; set; }



        public int? DepartmentId { get; set; }


    }
}
